<?php
class Application_Model_PayCodeType extends Application_Model_DomainObject{
    
    //序号
    protected $_id;
    
    //名称
    protected $_name;
    
    //面额
    protected $_money;
    
    //库存数量
    protected $_stocknum;
    
    //销售数量
    protected $_sellnum;
    
    //卡类型：5:手机卡 10:拉卡拉
    protected $_type;
    
    //对应图片
    protected $_image;
    
    private static function getDb(){
		return new Application_Model_DbTable_PayCodeType();
	}
    
    public static function getbyType($type){            
            $result=Application_Model_PayCodeType::getDb()->getbyType($type);
            return $result;
                
	}

}